package com.star.system.service.impl;

import com.star.system.entity.RequestLog;
import com.star.system.mapper.RequestLogMapper;
import com.star.system.service.RequestLogService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * 请求日志 服务实现类
 *
 * @author yangzj
 */
@Service
public class RequestLogServiceImpl extends ServiceImpl<RequestLogMapper, RequestLog> implements RequestLogService {

    @Async
    @Override
    public void write(RequestLog log) {
        this.save(log);
    }
}
